<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>员工管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../../elementUI/index.css">
    <link rel="stylesheet" href="../../../css/index.css">
    <link rel="stylesheet" href="./css/base2.css">
</head>
<style>
    ::-webkit-scrollbar {
        width: 8px;
        transform: translateX(8px);
        position: absolute;
        right: 0;
    }

    ::-webkit-scrollbar-thumb {
        background-color: rgb(139, 139, 139);
    }
</style>

<body>
    <div id="app" class="minWidth">
        <el-form :inline="true" :form="IO_form">
            <el-form-item>
                <el-button @click="Addemployee" type="primary">添加</el-button>
            </el-form-item>
        </el-form>
        <div style="display: flex;position: relative;">
            <div style="flex: 1;border: 1px solid #ccc;">
                <div
                    style="height: 40px;display: flex;align-items: center;font-weight: bold;justify-content: center;background-color: rgb(244,245,246);color: rgb(153,153,177);border-bottom: 1px solid #ccc;">
                    树状列表
                </div>
                <el-tree @check-change="handleCheckChange" :props="{label: 'text',
                value: 'text',children: 'children',}" :data="Employees" show-checkbox node-key="id" :default-expanded-keys="[2, 3]"
                    :default-checked-keys="[5]" :props="defaultProps">
                </el-tree>
            </div>
            <div style="width: 80%;margin-left: 20px;height: 100%;">
                <table class="tb tb-b c-100 c-t-center">
                    <thead>
                        <tr>
                            <th style="width: 33%;">组织</th>
                            <th style="width: 33%;">部门</th>
                            <th style="width: 33%;">员工</th>
                        </tr>
                    </thead>
                </table>
                <div style="overflow-y: scroll;height: 500px;">
                    <table id="process-demo-1" class="tb tb-b c-100 c-t-center">
                        <tbody>
                            <tr v-for="(item,i) in IA_tableData" :key="i">
                                <td style="width: 33%;">{{item.Organization_Name}}</td>
                                <td style="width: 33%;">{{item.Department_Name}}</td>
                                <td style="width: 33%;">{{item.Employee_Phone}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div v-else style="width: 100%;height: 400px;display: flex;justify-content: center;align-items: center;">
                    暂无员工数据
                </div>
            </div>
        </div>
        <div style="display: flex;justify-content: flex-end;">
            <el-pagination background v-show="II_total > 0" @size-change="handleSizeChange"
                @current-change="handleCurrentChange" :current-page="IO_form.page" :page-sizes="[10,20,30,50]"
                :page-size="IO_form.limit" layout="total, sizes, prev, pager, next, jumper" :total="II_total">
            </el-pagination>
        </div>
    </div>
    <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../js/tablesMergeCell.js"></script>
    <script type="text/javascript" src="../../../js/vue.min.js"></script>
    <script type="text/javascript" src="../../../elementUI/index.js"></script>
    <script type="text/javascript" src="../../../js/utils.js"></script>
    <script type="text/javascript" src="./js/EmployeeDetails.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#process-demo-1').tablesMergeCell({
                cols: [0, 1, 2]
            });
        });
    </script>
</body>

</html>